package com.cloudfun.campusshare.common.model.vo;

import com.cloudfun.campusshare.common.constant.MsgStatus;
import com.cloudfun.campusshare.common.constant.MsgType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;

/**
 * Created by Huqin on 2019/12/28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "消息")
public class MessageVo {

    @ApiModelProperty("Id")
    private String id;

    @ApiModelProperty("消息类型")
    private MsgType type;

    @ApiModelProperty("业务id")
    private String bizId;

    @ApiModelProperty("主题")
    private String subject;

    @ApiModelProperty("发信人id")
    private String sender;

    @ApiModelProperty("发信人姓名")
    private String senderName;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息状态")
    private MsgStatus status;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("修改时间")
    public String updateTime;

}
